package com.library.librarybackend.domain.dto;

import com.library.librarybackend.domain.RequestWithPage;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author 平
 * @description 书籍查询参数
 * @since 2025-09-21 20:19
 */
@Data
public class BookQueryDTO extends RequestWithPage {

    @Schema(description = "关键字")
    private String keyword;

    @NotNull
    @Schema(description = "排序方式(0:默认(最新上架)、1:按下载次数、2:按阅读次数、3:按出版时间)")
    private Integer sortType = 0;

}
